<template>
    <DialogCom :draggable="true" :title="title"  :visible="isVisible" @close="close" @confirm="confirm" :showFooter=showFooter :showClose="showClose">
        <template v-slot:content>
            <p>{{ content }}</p>
        </template>
    </DialogCom>
</template>
<script setup>
import DialogCom from '@/components/common/DialogCom.vue';
const props = defineProps({
    isVisible: {
        type: Boolean,
        default: false
    },
    showClose: {
        type: Boolean,
        default: false
    },
    content:{
        type: String,
        default: ''
    },
    title:{
           type: String,
        default: ''
    },
    showFooter:{
        type: Boolean,
        default: true
    }
})
const emits = defineEmits(['close', 'confirm'])
const close = () => {
    emits('close')
}
// 确认
const confirm = () => {
    emits('confirm')
}
</script>